package aaaClicker;

import java.io.File;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.FutureTask;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;

import com.attilax.Closure;
import com.attilax.io.pathx;
import com.attilax.util.PropX;

public class ccc {
	private static final File SYSTEM_BINARY = locateFirefoxBinaryFromSystemProperty();
	private static final File PLATFORM_BINARY = locateFirefoxBinaryFromPlatform();
	public static void main(String[] args) {
		
		PropX px = new PropX(pathx.classPathParent() + "\\click.txt");

		int start = Integer.parseInt(px.getProperty("start"));
		int end = Integer.parseInt(px.getProperty("end"));
		PropX px2 = new PropX(pathx.classPathParent() + "\\click.txt");
		System.out.println(px2.getProperty("end"));
		System.out.println(start);
		Future<?> fut = new FutureTask<Object>(new Runnable() {

			@Override
			public void run() {
				 try {
					Thread.sleep(30000);
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
		}, null);
		try {
			fut.get(5, TimeUnit.SECONDS);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ExecutionException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (TimeoutException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		//	busy = false;
		}
		
		System.out.println("--next");

	}

}
